package day1213;

public class Test6 {
    public static void main(String[] args) {

        //外边循环执行一次，内循环要执行所有次
        //100元，100只
        //公鸡5元，    母鸡3元，     小鸡   1.0/3.0元
        for(int j=0; j<=20; j++) {
            for (int i = 0; i <= 33; i++) {
                int x=100-i-j;
                if((j*5  +  i*3  +   x*1.0/3.0)==100 ){
                    System.out.println(i+","+j+","+x);
                }
            }
        }


        for (int s = 1; s <= 9; s++) {
            for (int i = 1; i <=s ; i++) {
                System.out.print("*");
            }
            System.out.println();
        }

        for (int s = 1; s <= 9; s++) {
            for (int i = 1; i <=s ; i++) {
                System.out.print( i +  "*"   +s+   "="  + i*s +" ");
            }
            System.out.println();
        }

    }
}
